<?php
if (isset($_POST['id']) &&  isset($_POST['name']) && !empty($_POST['name'])){
    include '../c/config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    
    $name=addslashes(trim($_POST['name']));
    $id=addslashes(trim($_POST['id'])); 
    $uid=addslashes(trim($_POST['uid'])); 
   
    $mysqli->query("INSERT INTO `xge` (`id`, `uid`, `name`, `tid`,`createtime`) VALUES (NULL,'".$uid."','".$name."','".$id."','".date("Y-m-d H:i:s")."')");

    $mysqli->close();

    echo 1;
}
